namespace :js do
  desc "Generates jsDoc (JavaDoc-style) documentation from javascript code"
  task :doc => :environment do
    require 'fileutils'
#    sh %{ java org.mozilla.javascript.tools.shell.Main public/javascripts/application/tools/jslint.js public/javascripts/runtime.js }
     sh %{java -jar public/javascripts/application/tools/jsdoc-toolkit/jsrun.jar public/javascripts/application/tools/jsdoc-toolkit/app/run.js -t=public/javascripts/application/tools/jsdoc-toolkit/templates/jsdoc -d=public/javascripts/application/tools/doc/ -r=9 public/javascripts/com/}
  end
end

